//
//  cinemaCell.m
//  项目一
//
//  Created by nick on 15/7/22.
//  Copyright (c) 2015年 nick. All rights reserved.
//

#import "cinemaCell.h"

@implementation cinemaCell

- (void)awakeFromNib {
    // Initialization code
}
- (void)layoutSubviews{
    self.NameLable.text = _modal.name;
    self.priceLable.text = [NSString stringWithFormat:@"￥ %@",_modal.lowPrice];
    self.AdressLable.text = _modal.address;
    self.scoreLabe.text = _modal.grade;
    if ([_modal.isSeatSupport isEqualToString:@"1"]) {
        self.seatImageView.image = [UIImage imageNamed:@"yellow"];
    }
    if ([_modal.isGroupBuySupport isEqualToString:@"1"]) {
        self.groupImageView.image = [UIImage imageNamed:@"gray"];
    }
    
}
- (void)setModal:(cinemaModal *)modal{
    _modal = modal;
    [self setNeedsLayout];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
